package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.MemberMessage;
import com.weixing.mall.provider.model.query.MemberMessageQuery;
import com.weixing.mall.provider.model.vo.MemberMessageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会员模块-会员消息表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-13
 */
public interface MemberMessageMapper extends BaseMapper<MemberMessage> {

    MemberMessageVo selectDetail(Long id);

    IPage selectByMemberId(@Param("pg") Page page, long memberId);

    int noReadMessage(Long memberId);

    List<MemberMessageVo>  noReadMessageByType(Long memberId);

    List<MemberMessageVo>  selectMessageByType(MemberMessageQuery entity);

    IPage selectMemberMessageList(@Param("pg") Page page,@Param("qs") MemberMessageQuery memberMessageQuery);
}
